<template>
    <div id="app">
        <router-view></router-view>
    </div>
</template>

<script>
    import {mapState} from "vuex";
    export default {
        name: 'app',
        watch: {
            $route(t, f){
                //this.$store.commit({type: 'resetParam'})
            },
            app_message(cur, old){
                this.$store.commit({type:'resetAppMessage'})
                if (cur != '') {
                    this.$alert(cur)
                }
            }
        },
        computed: {
            ...mapState({
                app_message: state => state.mine.app_message,
            })
        },
    }
</script>
